<?php if((isset($_SESSION['sys_admin']))) {?>

<div class="update-dept">
<div class="update-dept-atas"></div>
<div class="update-dept-tengah">
<?php 
	echo ! empty($h2_title) ? '<h2>' . $h2_title . '</h2>': '';
	echo ! empty($message) ? '<p class="message">' . $message . '</p>': '';

	$flashmessage = $this->session->flashdata('message');
	echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': '';
?>
<?php
	if ( ! empty($link))
	{
		echo '<p id="bottom_link">';
		foreach($link as $links)
		{
			echo $links . ' ';
		}
		echo '</p>';
	}
?>

<form name="berita_form" method="post" action="<?php echo $form_action; ?>"  >
	<p>
		<label for="idberita">Dept ID:</label>
		<input type="text" class="form_field" name="dept_id" size="30" value="<?php echo set_value('dept_id', isset($default['dept_id']) ? $default['dept_id'] : ''); ?>" disabled="disabled" />&nbsp;(<i>Automatic</i>)
        <input type="hidden" class="form_field" name="dept_id" size="30" value="<?php echo set_value('dept_id', isset($default['dept_id']) ? $default['dept_id'] : ''); ?>" />
	</p>
	<?php echo form_error('dept_id', '<p class="field_error">', '</p>');?>
	
	<p>
		<label for="tanggal">Dept Name</label>
        <!--<select name="dept_name">
        <?php //foreach($show as $show) { ?>
        	<option value="<?php //echo $show->dept_name;?>" <?php if($dept_name = $show->dept_name) echo "selected";?>><?php echo $show->dept_name;?></option>
          <?php// } ?>
        </select>-->
		<input type="text" class="form_field" name="dept_name" size="30" value="<?php echo set_value('dept_name', isset($default['dept_name']) ? $default['dept_name'] : ''); ?>" />
		
	</p>
	<?php echo form_error('dept_name', '<p class="field_error">', '</p>');?>	
	
	<p>
		<label for="isi">Descr:</label>
		<textarea cols="50" rows="20" name="descr" class="tinymce"><?php echo set_value('descrx', isset($default['descrx']) ? $default['descrx'] : ''); ?></textarea>
		
	</p>
	<?php echo form_error('descr', '<p class="field_error">', '</p>');?>

			

	<p>
		<input type="submit" name="submit" id="submit" value=" Simpan " />
	</p>
</form>
</div>
<div class="update-dept-bawah"></div>
</div>
<?php } ?>